h1, h2, h3, h4, h5, h6 {
	margin: 10px 0;
}
pre {
	width: 100%;
	box-sizing: border-box;
}
dialog {
	position: fixed;
}
.iconfont {
	font-size: 24px;
}
.mdl-button {
	-webkit-tap-highlight-color:  rgba(0,0,0,0);
	-webkit-tap-highlight-color: transparent;
}
.medium-zoom-overlay,
.medium-zoom-image {
	z-index: 4;
}
.bg {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	background-image: url('https://tianshu.alicdn.com/4db0f4a9-88c4-4670-95f3-acb3649597de.jpg');
	background-size: 100% 100%;
	background-repeat: no-repeat no-repeat;
	background-position: 0 0;
}
#go-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 3;
}
.mdl-menu a {
	text-decoration: none;
	display: block;
	width: 100%;
	height: 100%;

	.iconfont {
		margin-right: 10px;
		vertical-align: middle;
	}

	&,
	.iconfont {
		.iconfont {
			font-size: 20px;
		}
	}
}
.mdl-layout__header,
.menu {
	position: fixed;
	top: 0;
	left: 0;
}
.mdl-layout__header {
	.mdl-layout__header-row {
		padding-right: 0;
	}

	.mdl-layout__drawer-button {
		outline: none;
		line-height: 48px;
		-webkit-tap-highlight-color:  rgba(0,0,0,0);
		-webkit-tap-highlight-color: transparent;
	}

	.mdl-navigation__link .mdl-button {
		margin-left: 10px;
	}

	.mdl-layout-title {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: calc(100% - 50px);
	}
}
.mdl-layout__content {
	padding-top: 64px;
	background-color: #EEE;
}
.default-hidden-menu .mdl-layout--fixed-drawer > .mdl-layout__content {
	margin-left: 0;
}
.section-spacer {
	-webkit-flex-grow: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
}
.menu {
	border-right: none;
	
	.mdl-layout-title {
		background-image: url('https://tianshu.alicdn.com/3ff8f8f4-a583-4287-9615-fd3011eb59c8.jpg');
		background-size: 100% 100%;
		background-repeat: no-repeat no-repeat;
		background-position: 0 0;
		height: 140px;
		color: #FFF;
		padding-top: 20px;
		padding-bottom: 20px;
		
		p {
			margin: 0;
			font-size: 17px;
		}
		
		img {
			width: 72px;
			height: 72px;
			border-radius: 50%;
			display: block;
			margin-bottom: 10px;
			margin-left: -10px;
		}
	}
}
.article-list {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	flex-wrap: wrap;
	
	.mdl-card {
		width: calc(50% - 20px);
		height: auto;
		box-sizing: border-box;
		margin: 10px;
		
		.mdl-card__title {
			flex-grow: 0;

			.mdl-card__title-text a {
				color: #000;
				text-decoration: none;
				font-weight: 300;
			}
		}

		.mdl-card__supporting-text {
			padding-top: 0;
			flex-grow: 1;
			width: 100%;
			box-sizing: border-box;
		}

		.mdl-card__actions {
			> * {
				vertical-align: middle;
			}
			.date {
				font-size: 14px;
				margin-left: 5px;
			}
		}
	}
}
.page-list {
	text-align: center;
	
	span {
		display: inline-block;
	}
	
	a {
		text-decoration: none;
		font-size: 18px;
		line-height: 32px;
	}
	
	.iconfont {
		font-size: 20px;
	}
}
.article-container {
	max-width: 1600px;
	width: calc(100% - 16px);
	margin: 0 auto;
	
	.article {
		border-radius: 2px;
		margin-bottom: 80px;
		margin-top: 40px;
		flex-shrink: 0;

		.article-title {
			background-size: 100% 100%;
			background-position: 0 0;
			background-repeat: no-repeat no-repeat;
			color: #FFF;
			height: 240px;
			box-sizing: border-box;
			background-size: cover;
			padding: 24px;
			display: flex;
			flex-grow: 1;
			flex-direction: row;
			align-items: flex-end;
			
			h3 {
				margin: 0;
			}
		}
		
		.article-meta {
			box-sizing: border-box;
			padding: 16px;
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: flex-start;
			height: auto;
			width: 100%;
			overflow: visible;
			color: rgb(97, 97, 97);
			
			> * {
				display: flex;
				flex-direction: column;
				align-items: center;
				height: 36px;
			}
			
			.info {
				align-items: flex-start;
				
				a {
					color: rgb(97, 97, 97);
				}
			}
			
			.minilogo {
				width: 44px;
				height: 44px;
				margin-right: 5px;
				line-height: 44px;

				.iconfont {
					font-size: 38px;
				}
			}

			button .iconfont {
				font-size: 20px;
			}

			.wrapper {
				position: relative;
			}
		}
		
		
		.article-content {
			padding: 0 35px 25px 35px;

			img {
				max-width: 100%;
				max-height: 300px;
			}

			blockquote {
				font-style: normal;
				font-size: 14px;

				&::before,
				&::after {
					display: none;
				}
			}
		}
	}

	.copyright {
		padding: 20px 30px;
		border-top: 1px solid #EEE;
		
		p {
			margin: 0;
			line-height: 35px;
		}
	}
	
	.comment {
		padding: 32px;
		background-color: rgb(238, 238, 238);
	}
}
.mdl-mini-footer {
	padding: 32px;

	p {
		margin: 0;
	}

	.mdl-mini-footer--left-section {
		> * {
			display: inline-block;
		}
		
		.wrapper {
			position: relative;
		}
		
		.mdl-button--icon {
			display: inline-block;
			width: 36px;
			height: 36px;
			margin-right: 10px;
			line-height: 36px;
			
			.iconfont {
				font-size: 26px;
			}
		}
	}
}

.syntaxhighlighter {
	overflow-x: auto;
	overflow-y: hidden !important;
}

.qrcode-dialog img {
	width: 230px;
	height: 230px;
}

@media screen and (max-width: 1024px) {
	.mdl-layout__header {
		display: block;
		
		.mdl-layout__header-row {
			padding-left: 56px;
			padding-right: 20px;
		}
		
		.mdl-navigation__link {
			padding-left: 0;
			padding-right: 0;
		}
	}

	.article-list .mdl-card {
		width: 100%;
	}
	
	.article-container {
		.article {
			margin: 0;
			width: 100%;

			
			.article-title {
				height: 150px;

				h3 {
					font-size: 30px;
				}
			}

			.article-content {
				padding-left: 20px;
				padding-right: 20px;

				img {
					max-height: 200px;
				}
			}
		}
	}

	.hide-on-mobile {
		display: none !important;
	}
}

@media screen and (min-width: 1025px) {
	.mdl-layout--fixed-drawer > .mdl-layout__header .mdl-layout__header-row {
		padding-left: 260px;
	}

	.mdl-mini-footer {
		padding-left: 262px;
	}

	.default-hidden-menu {
		.mdl-layout__header {
			margin-left: 0;
			background-color: transparent;
			box-shadow: none;
			position: absolute;
		}
		
		.mdl-layout--fixed-drawer > .mdl-layout__header .mdl-layout__header-row {
			padding-left: 72px;
		}
		
		.mdl-mini-footer {
			padding-left: 32px;
		}

		.menu:not(.is-visible) {
			transform: translateX(-100%);
		}
	}

	.hide-on-desktop {
		display: none !important;
	}
}